package com.zretc.service.impl;

import com.zretc.dao.EmployeeMoveMapper;
import com.zretc.entity.EmployeeMove;
import com.zretc.service.EmployeeMoveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * @author wukai
 * @date 08-20
 */
@Service
public class EmployeeMoveServiceImpl implements EmployeeMoveService {
    @Autowired
    private EmployeeMoveMapper employeeMoveMapper;
    @Override
    public List<Map<String, Object>> getAll() {
        return employeeMoveMapper.findAll();
    }

    @Override
    public Integer removeSingle(Integer id) {
        return employeeMoveMapper.deleteSingle(id);
    }

    @Override
    public Integer addSingle(EmployeeMove employeeMove) {
        return employeeMoveMapper.insertSingle(employeeMove);
    }

    @Override
    public Integer modifySingle(EmployeeMove employeeMove) {
        return employeeMoveMapper.updateSingle(employeeMove);
    }
}
